package com.ctshk.rpc.tour.req.trip;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;


/**
 * @author Lenovo
 */
@Data
@ApiModel(value = "AddTripFileReq对象", description = "文件上传对象")
public class AddTripFileReq implements Serializable {


    @NotNull(message = "行程id不能为空")
    @ApiModelProperty(value = "行程id",required = true)
    private Long tripId;

    @NotNull(message = "类别ID不能为空")
    @ApiModelProperty(value = "类别ID",required = true)
    private Long typeId;

    @NotBlank(message = "类别名称不能为空")
    @ApiModelProperty(value = "类别名称",required = true)
    private String typeName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "文件地址列表不能为空")
    @ApiModelProperty(value = "文件地址列表",required = true)
    private List<FileReq> fileList;

}
